<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<table id="listControlType" style="min-width:400px;" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<td style="width:20px;"><input type="checkbox" onclick="selectAllForList('listControlType')"></td>
			<td>布控类型名称</td>
			<td>布控说明</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${listControlType}" var="controlType">
			<tr id="objId_${controlType.id }">
				<td><input type="checkbox" value="${controlType.id }" name="controlTypeIds"></td>
				<td>${controlType.name }</td>
				<td>${controlType.description }</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div style="width:100%;height:20px;margin-top:10px;">
	<div style="float:left;">记录 共${sQLSelectWhere.recordCount}条 每页${sQLSelectWhere.pageRows}条，共${sQLSelectWhere.recordPage}页</div>
	<div style="float:right;">
	<a href="javascript:findControlTypeSearchList(0)">首页</a>
	<a href="javascript:findControlTypeSearchList(${sQLSelectWhere.pageIndex - 1 < 0 ? 0 : (sQLSelectWhere.pageIndex - 1)})">上一页</a>
	<select style="width:38px;" onchange="findControlTypeSearchList($(this).val())">
		<c:forEach begin="0" end="${sQLSelectWhere.recordPage - 1 < 0 ? 0 : sQLSelectWhere.recordPage - 1}" var="pageIndex">
			<option value="${pageIndex}" ${sQLSelectWhere.pageIndex == pageIndex ? 'selected' : '' }>${pageIndex + 1}</option>
		</c:forEach>
	</select>
	<a href="javascript:findControlTypeSearchList(${sQLSelectWhere.pageIndex + 1 > sQLSelectWhere.recordPage - 1 ? (sQLSelectWhere.recordPage - 1) : (sQLSelectWhere.pageIndex + 1)})">下一页</a>
	<a href="javascript:findControlTypeSearchList(${sQLSelectWhere.recordPage - 1})">未页</a>
	</div>
</div>
<script type="text/javascript">
	setTableCSS("listControlType");
</script>